namespace FastDevTemplate.Api.Model.Base;

public class HttpResult
{
    public HttpResult()
    {
    }

    public HttpResult(int code = 1)
    {
        Code = code;
    }

    public int Code { get; set; }
    public string Msg { get; set; } = "";
}

public class HttpResult<TModel>
{
    public HttpResult()
    {
    }

    public HttpResult(TModel data, int code = 1)
    {
        Data = data;
        Code = code;
    }

    public TModel? Data { get; set; }
    public int Code { get; set; }
    public string Msg { get; set; } = "";
}